<%-- 
    Document   : thongtincanhan
    Created on : Oct 13, 2011, 11:20:18 PM
    Author     : Rocker000
--%>

<%@page import="pojo.KhachHang_pojo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<%
KhachHang_pojo kh = new KhachHang_pojo();
if(session.getAttribute("KhachHang")!=null)
    kh = (KhachHang_pojo)session.getAttribute("KhachHang");
%>
<form id="form1" name="form1" method="post" action="KhachHang_controller">
<table width="100%" border="1">
  <tr>
    <td colspan="2" align="center"><strong><font color="#FF0000">THÔNG TIN KHÁCH HÀNG</font></strong></td>
    </tr>
  <tr>
    <td width="27%">UserName:</td>
    <td width="73%"><font color="red"><strong><%=kh.getTenDangNhap() %></strong></font></td>
  </tr>
  <tr>
    <td>Tên thật:</td>
    <td><input name="txttenthat" type="text" id="txttenthat"  value="<%=kh.getTenKhachhang() %>" /></td>
  </tr>
  
  <tr>
    <td>Email:</td>
    <td><input type="text" name="txtemail" id="txtemail"  value="<%=kh.getEmail() %>"/></td>
  </tr>
  <tr>
    <td>Địa chỉ:</td>
    <td><input type="text" name="txtdiachi" id="txtdiachi" value="<%=kh.getDiaChi() %>" /></td>
  </tr>
  <tr>
    <td>Số điện thoại:</td>
    <td><input type="text" width="500px" name="txtsodienthoai" id="txtsodienthoai"  value="<%=kh.getSoDienThoai() %>"/></td>
  </tr>
  <%if(request.getParameter("readonly")==null){ %>
  <tr>
    <td ><a href="thaydoimatkhau.jsp">Thay đổi mật khẩu</a></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">
        <input type="submit" name="btluuthongtin" id="btluuthongtin" value="Lưu thông tin cá nhân" />
        <input type="hidden" name="action" value="capnhatthongtin">
    </td>
    </tr>
    <%}%>
</table>
</form>
